package com.chenyue.cm.match.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 赛事报名
 * </p>
 *
 * @author Lbx
 * @since 2021-10-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "JdMatchSign对象", description = "赛事报名")
public class JdMatchSign extends Model<JdMatchSign> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "队伍id")
    private Integer groupId;

    @ApiModelProperty(value = "赛事id")
    private Integer matchId;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "报名时间")
    @TableField(fill = FieldFill.INSERT)
    private Date ct;

    @ApiModelProperty(value = "审核备注")
    private String remark;

    @ApiModelProperty(value = "审核状态 0待审核1通过2拒绝")
    private Integer state;

    @ApiModelProperty(value = "支付状态0待支付1已支付")
    private Integer payState;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
